package com.wu.flandre.entity.table;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author wu
 * @since 2019-12-14
 */
@TableName("Blog")
public class Blog extends Model<Blog> {

    private static final long serialVersionUID=1L;

    /**
     * 博客文章ID
     */
    @TableId("BlogID")
    private String BlogID;

    /**
     * 博客文章标题
     */
    @TableField("BlogTitle")
    private String BlogTitle;

    /**
     * 博客类型
     */
    @TableField("BlogType")
    private Integer BlogType;

    /**
     * 博客内容
     */
    @TableField("BlogContent")
    private String BlogContent;

    /**
     * 发布时间
     */
    @TableField("CreateTime")
    private LocalDateTime CreateTime;

    /**
     * 博客文章状态0正常1已删除2下架
     */
    @TableField("BlogState")
    private Integer BlogState;

    /**
     * 发布者
     */
    @TableField("BlogAuthor")
    private String BlogAuthor;


    public String getBlogID() {
        return BlogID;
    }

    public void setBlogID(String BlogID) {
        this.BlogID = BlogID;
    }

    public String getBlogTitle() {
        return BlogTitle;
    }

    public void setBlogTitle(String BlogTitle) {
        this.BlogTitle = BlogTitle;
    }

    public Integer getBlogType() {
        return BlogType;
    }

    public void setBlogType(Integer BlogType) {
        this.BlogType = BlogType;
    }

    public String getBlogContent() {
        return BlogContent;
    }

    public void setBlogContent(String BlogContent) {
        this.BlogContent = BlogContent;
    }

    public LocalDateTime getCreateTime() {
        return CreateTime;
    }

    public void setCreateTime(LocalDateTime CreateTime) {
        this.CreateTime = CreateTime;
    }

    public Integer getBlogState() {
        return BlogState;
    }

    public void setBlogState(Integer BlogState) {
        this.BlogState = BlogState;
    }

    public String getBlogAuthor() {
        return BlogAuthor;
    }

    public void setBlogAuthor(String BlogAuthor) {
        this.BlogAuthor = BlogAuthor;
    }

    @Override
    protected Serializable pkVal() {
        return this.BlogID;
    }

    @Override
    public String toString() {
        return "Blog{" +
        "BlogID=" + BlogID +
        ", BlogTitle=" + BlogTitle +
        ", BlogType=" + BlogType +
        ", BlogContent=" + BlogContent +
        ", CreateTime=" + CreateTime +
        ", BlogState=" + BlogState +
        ", BlogAuthor=" + BlogAuthor +
        "}";
    }
}
